<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=1024, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../CSS/top.css">
    <link rel="stylesheet" href="../CSS/clothes.css">
    <script type="text/javascript" src="../JS/top.js"></script>
    <title>女装</title>
</head>

<body>
<%
	String islogin="unlogin";
	if(session.getAttribute("isLogin")!=null){
		islogin=(String)session.getAttribute("isLogin");
	}
	request.setAttribute("type", "2");
%>
<s:action name="goodsInfo" namespace="/"></s:action>
    <input type="hidden" name="" id="isLogin" value=<%=islogin %> >
    <div id="top">
        <div class="nav_top">
        </div>
        <div class="navigation">
            <div class="nav" id="nav">
                <ul>
                    <li>
                        <a href="../index.jsp">首页</a>
                    </li>
                    <li>
                        <a href="./man_clothes.jsp" title="男装">男装</a>
                    </li>
                    <li>
                        <a href="./woman_clothes.jsp" title="女装">女装</a>
                    </li>
                    <li id="personal">
                        <a href="./personal.jsp" title="个人中心">个人中心</a>
                        <dl class="nav_two">
                        	<dd>
	                           <a href="./personal.jsp" title="个人中心">个人中心</a>
	                        </dd>
	                        <dd>
	                           <a href="unlogin.action" title="退出登录">退出登录</a>
	                        </dd>
                        </dl>
                    </li>
                    <li id="login">
                        <a href="./login.jsp" title="登录/注册 ">登录/注册</a>
                        <dl class="nav_two">
                            <dd>
                                <a href="./login.jsp" title="登录">登录</a>
                            </dd>
                            <dd>
                                <a href="./register.jsp" title="注册">注册</a>
                            </dd>
                            <dd>
                                <a href="./forget_pas.jsp" title="忘记密码">忘记密码</a>
                            </dd>
                        </dl>
                    </li>
                </ul>

            </div>
        </div>
    </div>
    <div class="all_center">
        <div class="center_top">
            <div class="search">
                <form action="">
                    <span class="sear_span1">
                    <input type="text" name="" id="sear_in" placeholder="搜索 商家/商品">
                </span>
                    <span class="sear_span2">
                    <input type="submit" name="" id="sear_su" value="搜  索">
                </span>
                </form>
                <div class="search_link">
                    <p>
                        <a href="" style="padding-left:13px;">品牌女装</a> |
                        <a href="">女装上衣</a> |
                        <a href="">女装旗舰店</a> |
                        <a href="">女装夏装</a> |
                        <a href="">女装连衣裙</a> |
                        <a href="">女装打底裤</a>
                    </p>
                </div>
            </div>
            <hr>
        </div>
        <div class="brand">
            <div class="goods_n">
                <div class="goods_num">
                    <span>共</span>
                    <span class="num" style="font-family:微软雅黑;"><%=session.getAttribute("goodsNum") %></span>
                    <span>件相关商品</span>
                </div>
            </div>
            <div class="brand_num">
                <div class="name">
                    <span>品牌</span>
                </div>
                <div class="all_brand">
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic1.jpg" alt="Jack Jones/杰克琼斯">
                            <span>ONLY</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic2.jpg" alt="Mark Fairwhale/马克华菲">
                            <span>Vero Moda</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic3.jpg" alt="GXG">
                            <span>ZARA</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic4.png" alt="ZARA">
                            <span>HSTYLE/韩都衣舍</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic5.jpg" alt="Goldlion/金利来">
                            <span>PEACEBIRD/太平鸟</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic6.jpg" alt="PEACEBIRD/太平鸟">
                            <span>裂帛</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic7.jpg" alt="PLAYBOY/花花公子">
                            <span>Five Plus</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic8.png" alt="Cabbeen/卡宾">
                            <span>Ochirly/欧时力</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic9.jpg" alt="Armani/阿玛尼">
                            <span>INMAN/茵曼</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic10.jpg" alt="Septwolves/七匹狼">
                            <span>Girdear/哥弟</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="../IMG/woman_clothes/pic11.jpg" alt="Semir/森马">
                            <span>Massimo Dutti</span>
                        </a>
                    </li>
                </div>
            </div>
            <div class="classify">
                <div class="name">
                    <span>适用季节</span>
                </div>
                <div class="type">
                    <a href="">秋季</a>
                    <a href="">春季</a>
                    <a href="">四季</a>
                    <a href="">夏季</a>
                    <a href="">冬季</a>
                    <a href="">春秋</a>
                </div>
            </div>
            <div class="classify">
                <div class="name">
                    <span>领型</span>
                </div>
                <div class="type">
                    <a href="">圆领</a>
                    <a href="">半高领</a>
                    <a href="">高领</a>
                    <a href="">V领</a>
                    <a href="">立领</a>
                    <a href="">连帽</a>
                    <a href="">POLO领</a>
                    <a href="">其他</a>
                </div>
            </div>
        </div>
        <div class="screen">
            <div class="goods_screen">
                <li>综合↓</li>
                <li>人气↓</li>
                <li>新品↓</li>
                <li>销量↓</li>
                <li>价格↓</li>
            </div>
            <div class="page">
                <span>1/1</span>
            </div>
        </div>
        <div class="all_goods">
          <s:iterator value="#session.allGoods" id="goods">
            <div class="goods">
                <div class="goods_info">
                    <div class="goods_img">
                        <a href="">
                            <img src='<s:property value="#goods.value.img"/>' alt="">
                        </a>
                    </div>
                    <div class="goods_price">
                        <span>¥</span>
                        <span id="goods_price" class="price"><s:property value="#goods.value.price"/></span>
                    </div>
                    <div class="goods_activity">
                        <p>
                            <!-- <img src="../IMG/man_clothes/good_activity.png" alt=""> -->
                        </p>
                    </div>
                    <div class="goods_describe">
                        <a href="">
                            <s:property value="#goods.value.name"/>
                        </a>
                        <p style="display:none;" class="goods_id"><s:property value="#goods.value.id"/></p>
                    </div>
                    <div class="goods_store">
                        <a href=""><s:property value="#goods.value.store"/></a>
                        <a href="" id="buyAction" class="buyAction">
                            <button>购买</button>
                        </a>
                    </div>
                    <div class="goods_record">
                        <div class="month_record">
                            <span>
                                月成交
                            </span>
                            <span class="num">
                                <span id="month_record"><s:property value="#goods.value.sales"/></span>
                            <span>笔</span>
                            </span>
                        </div>
                        <div class="comment">
                            <span style="padding-left:10px;">评价</span>
                            <a href=""><s:property value="#goods.value.comment"/></a>
                        </div>
                    </div>
                </div>
            </div>
            </s:iterator>
        </div>
    </div>
    <div class="foot">
        <div class="foot_center">
            <p>成都大学Tyh制作</p>
            <br>
            <p>
                <span>联系方式：dztangyinhao@126.com</span>&nbsp&nbsp&nbsp
                <a href="mailto:dztangyinhao@126.com">联系我</a>
            </p>
        </div>
    </div>
</body>
<script>
var buyAction = document.getElementsByClassName('buyAction');
var price = document.getElementsByClassName('price');
var id = document.getElementsByClassName('goods_id');
for (var i = 0; i < buyAction.length; i++) {
    buyAction[i].href = "buyGoods.action?price=" + price[i].innerHTML + "&id=" + id[i].innerHTML;
}
var isLogon = document.getElementById('isLogin').value;
if (isLogon == 'login') {
    login();
} else if (isLogon == 'unlogin') {
    unlogin();
}
        
</script>
</html>